<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@page import="java.util.Date,com.padgett.resourcemanagement.util.DateUtil" %>
<!DOCTYPE HTML>
<html>
<head>
<%
String clientId=(String)request.getAttribute("clientId");
String clientName=(String)request.getAttribute("Name");
String clientType=(String)request.getAttribute("Type");
%>
<title>Client - <%=clientName %></title>
<%@include file="/WEB-INF/css.jsp" %>
<%@include file="/WEB-INF/javascript.jsp" %>
<style>
.BusinessClientContainer{
	width:1024px;
	height:400px;
	padding:10px;
	margin:10px;
	border:1px solid #a3a3a3;
}
</style>
<script>
$(document).ready(function(){
	var clientType="<%=clientType%>";
	$('#EditClientButton').button().click(function(){
		$('#PersonalClientDialog').dialog('open');
	});
	$('#BackToClientListButton').button().click(function(){
		window.location.href='/personalclients.jsp';
	});
});
</script>
</head>
<body>
<%@include file="/WEB-INF/personalclientnavigation.jsp" %>
<div class="ClientListContainer" style="margin-bottom:10px;margin-top:-20px;">
	<h2>CLIENT PROFILE</h2>
<div id="ClientActionsContainer" style="float:left;width:100%;margin:0 0 10px 18px">
<button id="BackToClientListButton">Back to Client List</button>
<button id="EditClientButton">Edit</button>
</div><br/>
<%@include file="/WEB-INF/personalclientdialog.jsp" %>
<div class="ClientContainer">
<table>
	<tr>
		<td class="kheader">Client No:</td><td><input id="clientId" name="clientId" type="hidden" value="<%=request.getAttribute("clientId") %>"/><%=request.getAttribute("ClientNumber") %></td>
	</tr>
	<tr>
		<td class="kheader">Last Name:</td><td><%=(request.getAttribute("LastName")!=null?request.getAttribute("LastName"):"") %></td>
	</tr>
		<tr>
		<td class="kheader">First Name:</td><td><%=(request.getAttribute("FirstName")!=null?request.getAttribute("FirstName"):"") %></td>
	</tr>
	<tr>
		<td class="kheader">Email:</td><td>
		<%=(request.getAttribute("Email")!=null?request.getAttribute("Email"):"") %></td>
	</tr>
	<tr>
		<td class="kheader">Home Phone:</td><td>
		<%=(request.getAttribute("HomePhone")!=null?request.getAttribute("HomePhone"):"") %>
		</td>
	</tr>
	<tr>
		<td class="kheader">Cell Phone:</td><td>
		<%=(request.getAttribute("CellPhone")!=null?request.getAttribute("CellPhone"):"") %></td>
	</tr>
		<tr>
		<td class="kheader">Work Phone:</td><td>
		<%=(request.getAttribute("WorkPhone")!=null?request.getAttribute("WorkPhone"):"") %></td>
	</tr>
	<tr>
		<td class="kheader">No. Of Returns:</td><td>
		<%=(request.getAttribute("NumberOfReturns")!=null?request.getAttribute("NumberOfReturns"):"") %>
		</td>
	</tr>
	<tr>
		<td class="kheader">Date In:</td>
		<td>
		<%
		Date dateIn=(Date)request.getAttribute("DateIn");
		if(dateIn!=null){
			out.print(DateUtil.formatDate(dateIn,DateUtil.LONG_DATE_FORMAT));
		}
		%>
		</td>
	</tr>
	<tr>
		<td class="kheader">Date Completed:</td>
		<td>
		<%
		Date dateCompleted=(Date)request.getAttribute("DateCompleted");
		if(dateCompleted!=null){
			out.print(DateUtil.formatDate(dateCompleted,DateUtil.LONG_DATE_FORMAT));
		}
		%>
		</td>
	</tr>
	<tr>
		<td class="kheader">No. Of Returns Completed:</td>
		<td>
		<%=(request.getAttribute("NumberOfReturnsCompleted")!=null?request.getAttribute("NumberOfReturnsCompleted"):"") %>
		</td>
	</tr>
	<tr>
		<td class="kheader">No. Of Returns Signed:</td>
		<td>
		<%=(request.getAttribute("NumberOfReturnsSigned")!=null?request.getAttribute("NumberOfReturnsSigned"):"") %>
		</td>
	</tr>
	<tr>
		<td class="kheader">No. Of Returns EFiled:</td>
		<td>
		<%=(request.getAttribute("NumberOfReturnsEFiled")!=null?request.getAttribute("NumberOfReturnsEFiled"):"") %>
		</td>
	</tr>
	<tr>
		<td class="kheader">Date EFiled:</td>
		<td>
		<%
		Date dateEFiled=(Date)request.getAttribute("DateEFiled");
		if(dateEFiled!=null){
			out.print(DateUtil.formatDate(dateEFiled,DateUtil.LONG_DATE_FORMAT));
		}
		%>
		</td>
	</tr>
	<tr>
		<td class="kheader">No. Of Returns Paper Filed:</td>
		<td>
		<%=(request.getAttribute("NumberOfReturnsPaperFiled")!=null?request.getAttribute("NumberOfReturnsPaperFiled"):"") %>
		</td>
	</tr>
	<tr>
		<td class="kheader">Date Filed:</td>
		<td>
		<%
		Date dateFiled=(Date)request.getAttribute("DateFiled");
		if(dateFiled!=null){
			out.print(DateUtil.formatDate(dateFiled,DateUtil.LONG_DATE_FORMAT));
		}
		%>
		</td>
	</tr>
	<tr>
		<td class="kheader">Fee:</td>
		<td>
		$<%=(request.getAttribute("Fee")!=null?request.getAttribute("Fee"):"") %>
		</td>
	</tr>
	<tr>
		<td class="kheader">Method Of Payment:</td>
		<td>
		<%=(request.getAttribute("MethodOfPayment")!=null?request.getAttribute("MethodOfPayment"):"") %>
		</td>
	</tr>
	<tr>
		<td class="kheader">Fee Collected:</td><td>
		$<%=(request.getAttribute("FeeCollected")!=null?request.getAttribute("FeeCollected"):"") %></td>
	</tr>
	<tr>
		<td class="kheader">Date Collected:</td>
		<td>
		<%
		Date dateCollected=(Date)request.getAttribute("DateCollected");
		if(dateCollected!=null){
			out.print(DateUtil.formatDate(dateCollected,DateUtil.LONG_DATE_FORMAT));
		}
		%>
		</td>
	</tr>
	<tr>
		<td class="kheader">Accountant:</td><td>
		<%=(request.getAttribute("AccountantName")!=null?request.getAttribute("AccountantName"):"") %></td>
	</tr>
	<tr>
		<td class="kheader">Note:</td>
		<td>
			<%=(request.getAttribute("Note")!=null?request.getAttribute("Note"):"") %>
		</td>
	</tr>
</table>
</div>
</div>
</body>
</html>